#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	double w = 100.0;
	double g = 100.0;
	int i = 0;
	int n = 0;
	scanf("%d", &n);
	for (i = 0; i < n; i++)
		g = g * (0.001 + 1);
	for (i = 0; i < n / 5; i++)
	{
		w = w * (0.002 + 1) * (0.002 + 1) * (0.002 + 1)*(1 - 0.001) * (1 - 0.001);
	}
	n = n % 5;
	if (n >= 1 && n <= 3)
	{
		for (i = 0; i < n; i++)
			w = w * (0.002 + 1);
	}
	else if(i==4)
		w = (0.002 + 1) * (0.002 + 1) * (0.002 + 1) * w * (1 - 0.001);
	printf("%.5f,%.5f", g, w);
	return 0;
}
